package HomeWork;

public class Work_4 {
    public static void main(String[] args) {

    }
}

class BankAcount{
    private double banlance;
    public int count=3;

    public BankAcount(double banlance) {
        this.banlance = banlance;
    }
    public void depoist(double amount){
        fee();
        banlance+=amount;
    }
    public void withdraw(double amount){
        fee();
        banlance-=amount;
    }
    public double fee(){
        if(count!=0){
            count--;
            return 0;
        }
        else{
            return 1;
        }
    }
}
class CheckingAmount{

}